<%--
  Created by IntelliJ IDEA.
  User: ACER
  Date: 2017/12/27
  Time: 10:29
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>上传文件列表</title>
</head>
<body>

<h3>文件列表</h3>
<table class="acclist_tab" border="1" bordercolor="#000000" cellspacing="0" cellpadding="2" style="border-collapse:collapse;">
    <tr>
        <th>文件名</th>
        <th>文件大小（KB）</th>
        <th>操作</th>
    </tr>
    <c:if test="${not empty accessoryList}">
        <c:forEach items="${accessoryList}" var="acc">
            <tr>
                <td>${acc.fileName}</td>
                <td>${acc.fileSize}</td>
                <td>
                    <a href="<%=request.getContextPath()%>/removeUploadedFile?id=${acc.id}">删除</a>&nbsp;&nbsp;
                    <a href="<%=request.getContextPath()%>/downloadUploadedFile?id=${acc.id}">下载</a>
                </td>
            </tr>
        </c:forEach>
    </c:if>
</table>
</body>
</html>
